import request from '@/utils/request'

// 查询考生信息仲裁列表
export function listArbitration(query) {
  return request({
    url: '/business/arbitration/list',
    method: 'get',
    params: query
  })
}

// 查询考生信息仲裁列表
export function listArbitrationNew(query) {
  return request({
    url: '/business/arbitration/listNew',
    method: 'get',
    params: query
  })
}

// 查询考生信息仲裁详细
export function getArbitration(id) {
  return request({
    url: '/business/arbitration/' + id,
    method: 'get'
  })
}

// 新增考生信息仲裁
export function addArbitration(data) {
  return request({
    url: '/business/arbitration',
    method: 'post',
    data: data
  })
}

// 修改考生信息仲裁
export function updateArbitration(data) {
  return request({
    url: '/business/arbitration',
    method: 'put',
    data: data
  })
}

// 删除考生信息仲裁
export function delArbitration(id) {
  return request({
    url: '/business/arbitration/' + id,
    method: 'delete'
  })
}

// 导出考生信息仲裁
export function exportArbitration(query) {
  return request({
    url: '/business/arbitration/export',
    method: 'get',
    params: query
  })
}

// 获取考生某项目的最新成绩
export function getResult(query) {
  return request({
    url: '/business/arbitration/getResult',
    method: 'post',
    data: query
  })
}

// 请求视频或照片
export function getRequest(query) {
  return request({
    url: '/business/arbitration/request/' + query.id + '/' + query.type,
    method: 'get'
  })
}

// 查询录像列表
export function listVideos(query) {
  return request({
    url: '/business/arbitration/videotapeList',
    method: 'get',
    params: query
  })
}

// 查询轨迹图列表
export function listTrace(query) {
  return request({
    url: '/business/arbitration/traceList',
    method: 'get',
    params: query
  })
}
